package First;

/**
 * Created by msingh on 2014-06-27.
 */
public class PassByValue {
    /*
        int x;
        public int getXvalue(int y){
            this.x = y;
            System.out.println("value of x is: " + x);
            return x;
        }
    */
    public static int receiving (int var){
        var = var + 2;
        return var;
    }

    public static void main(String[] args){

        int passing = 11;
        receiving (passing);
        System.out.println("Value of passing is:" + passing);
        System.out.println("Value of passing is:" + PassByValue.receiving(passing));
/*
		PassByValue valX = new PassByValue();
		int newX = valX.getXvalue(10);

		System.out.print("value of x:" + newX);
*/
    }

}
